import request from '@/utils/request'

// 学生查看控制接口
export function getStudentControl(data) {
  return request({
    url: '/controlInteraction/pageByStudentId',
    method: 'get',
    params: {
      studentId: data.Id,
      limit: '10',
      page: '1'
    }
  })
}

// 老师查看控制接口
export function getTeacherControl(data) {
  return request({
    url: '/controlInteraction/pageByTeacherId',
    method: 'get',
    params: {
      teacherId: data.Id,
      limit: '10',
      page: '1'
    }
  })
}

// 老师查看控制接口
export function postControlStatus(data) {
  return request({
    url: '/controlInteraction/updateControlInteraction',
    method: 'post',
    params: {
      controlInteractionId: data.controlInteractionId,
      remoteStatus: data.remoteStatus
    }
  })
}
